import request from '@/utils/request' // 导入封装请求的js文件
// 注册
export function registerPhone(params) {
  return request({
    url: '/umsMember/register',
    method: 'post',
    params: params
  })
}
// 获取图形验证码
export function getCode(params) {
  return request({
    url: '/common/captcha/code',
    method: 'get',
    headers: {
      uuids: params
    }
  })
}
// 获取短信验证码
export function getSms(params,uuid) {
  return request({
    url: '/common/sms/sendCode',
    method: 'get',
    params: params,
    headers: {
      uuids: uuid
    }
  })
}
// 供应商注册
export function registerStore(params, data) {
  return request({
    url: '/umsMember/registerStore',
    method: 'post',
    params: params,
    data: data
  })
}
//重置密码
export function forgetPassword(params) {
  return request({
    url: '/umsMember/forgetPassword',
    method: 'post',
    data: params,
  })
}
//获取所在市场
export function selectMarketLocation(params) {
  return request({
    url: '/UmsAdminConfig/selectSystemConfigInfo',
    method: 'get',
    params: params
  })
}
//验证图形验证码
export function checkCode(params, uuid) {
  return request({
    url: '/common/captcha/checkCode',
    method: 'get',
    params: params,
    headers: {
      uuids: uuid
    }
  })
}